package top.kaoshanji.p3ch12a;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 代码清单-p3ch12a-384页a：说明通配符捕获类型的示例
 * author kaoshanji
 * ^_^
 * create time 2025/2/6 14:37
 */
public class Wildcard {

    public List<? extends Number> createList() {
        return new ArrayList<>();
    }

    public void use() {
        List<? extends Serializable> list = createList();
    }

}
